// web/src/app/(employee)/company/[id]/_components/company-content.tsx
import React from 'react';
import {Company, Employee, Hr} from "@prisma/client";
import {Card} from "@/components/ui/card";
import CompanyEmployeeHrCard from "@/app/(employee)/company/[id]/_components/company-employee-hr-card";
import CompanyDescriptionCard from "@/app/(employee)/company/[id]/_components/company-description-card";
import CompanyEmployeeCard from "@/app/(employee)/company/[id]/_components/company-employee-card";

interface Props {
    company: Company & {
        Hr: Hr[],
        Employee: Employee[]
    }
}

const CompanyContent = ({company}: Props) => {

    return (
        <div>
            {/*<CompanyEmployeeCard employee={company.Employee}/>*/}
            <CompanyDescriptionCard
                location={company.location!}
                description={company.description!}/>
            {/*@ts-ignore*/}
            <CompanyEmployeeHrCard employee={company.Employee}/>
        </div>
    );
};

export default CompanyContent;